/**
 * Armors for Ships
 */

package edu.gatech.spacetraderteam3.model;

/**
 * Armor Ship Part
 * 
 * @author randal
 * @version 0.1
 */
public class ShipArmor {

    /**
     * An array of strings that show the types of ship armor
     */
    private static final String[] ARMORTYPES = new String[] { "Ceramic Hull",
            "Aluminium Hull", "Reinforced Steel", "Titanium", "Reinforced Titanium",
            "Bio-Steel", "Space Alloy", "Pillows Duct-Taped to outside of Ship",
            "Adamantium", "Unobtainium" };

    /**
     * Gets the name of the armor module at a certain level
     * 
     * @param level
     *            level to check
     * @return name of the armor
     */
    public static String getArmorName(int level) {
        return ARMORTYPES[Math.max(0, Math.min(level, ARMORTYPES.length - 1))];
    }

    /**
     * Get's the max level for Armor upgrades
     * 
     * @return max level of Armor upgrades
     */
    public static int getMaxLevel() {
        return ARMORTYPES.length - 1;
    }
    
    /**
     * Returns the string representation of the ShipArmor. You should never see this.
     * @return A brief warning. 
     */
    public String toString() {
        return "ShipArmor! You shouldn't be seeing this...";
    }

}
